<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">

<html><head><title>ImageBar - ezRPG</title><link rel="stylesheet" type="text/css" href="../../styles/main.css"><script language=JavaScript src="../../javascript/main.js"></script><script language=JavaScript src="../../javascript/searchdata.js"></script></head><body class="ContentPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>

<!--  Generated by Natural Docs, version 1.4 -->
<!--  http://www.naturaldocs.org  -->

<!-- saved from url=(0026)http://www.naturaldocs.org -->




<div id=Content><div class="CClass"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="ImageBar"></a>ImageBar</h1><div class=CBody><p>Generate a simple bar image used to represent player stats graphically.</p><h4 class=CHeading>Example Usage</h4><blockquote><pre>$bar = new ImageBar(); // Load the class
$bar-&gt;setWidth(150); // Set the width
$bar-&gt;makeBar(); // Start the bar
$bar-&gt;setFillColor('blue'); //Blue bar
$bar-&gt;setData($player-&gt;max_exp, $player-&gt;exp); // Give the bar some values
$bar-&gt;setTitle('EXP: '); //Set title
$bar-&gt;generateBar(); //Display the image</pre></blockquote><p>See bar.php for a complete, working example.</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#ImageBar" >ImageBar</a></td><td class=SDescription>Generate a simple bar image used to represent player stats graphically.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#ImageBar.Variables" >Variables</a></td><td class=SDescription></td></tr><tr class="SVariable SIndent2 SMarked"><td class=SEntry><a href="#ImageBar.$bar_w" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">$bar_w</a></td><td class=SDescription>Width of the bar image.</td></tr><tr class="SVariable SIndent2"><td class=SEntry><a href="#ImageBar.$bar_h" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">$bar_h</a></td><td class=SDescription>Height of the bar image.</td></tr><tr class="SVariable SIndent2 SMarked"><td class=SEntry><a href="#ImageBar.$fontsize" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">$fontsize</a></td><td class=SDescription>Font size of the text.</td></tr><tr class="SVariable SIndent2"><td class=SEntry><a href="#ImageBar.$fileType" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">$fileType</a></td><td class=SDescription>The type of image file to generate. </td></tr><tr class="SVariable SIndent2 SMarked"><td class=SEntry><a href="#ImageBar.$fillcolor" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">$fillcolor</a></td><td class=SDescription>A colour identifier representing the fill colour composed of RGB components.</td></tr><tr class="SVariable SIndent2"><td class=SEntry><a href="#ImageBar.$backcolor" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">$backcolor</a></td><td class=SDescription>A colour identifier representing the background colour composed of RGB components.</td></tr><tr class="SVariable SIndent2 SMarked"><td class=SEntry><a href="#ImageBar.$dataPercent" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')">$dataPercent</a></td><td class=SDescription>The percent of data.</td></tr><tr class="SVariable SIndent2"><td class=SEntry><a href="#ImageBar.$barPercent" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')">$barPercent</a></td><td class=SDescription>The percent of the width bar to be filled in, in pixels.</td></tr><tr class="SVariable SIndent2 SMarked"><td class=SEntry><a href="#ImageBar.$text" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')">$text</a></td><td class=SDescription>The text to be displayed on the bar.</td></tr><tr class="SVariable SIndent2"><td class=SEntry><a href="#ImageBar.$bar" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')">$bar</a></td><td class=SDescription>The image identified of the bar.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#ImageBar.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#ImageBar.setWidth" id=link11 onMouseOver="ShowTip(event, 'tt11', 'link11')" onMouseOut="HideTip('tt11')">setWidth</a></td><td class=SDescription>Sets the value of <a href="#ImageBar.$bar_w" class=LVariable id=link12 onMouseOver="ShowTip(event, 'tt1', 'link12')" onMouseOut="HideTip('tt1')">$bar_w</a>.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#ImageBar.setHeight" id=link13 onMouseOver="ShowTip(event, 'tt12', 'link13')" onMouseOut="HideTip('tt12')">setHeight</a></td><td class=SDescription>Sets the value of <a href="#ImageBar.$bar_h" class=LVariable id=link14 onMouseOver="ShowTip(event, 'tt2', 'link14')" onMouseOut="HideTip('tt2')">$bar_h</a>.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#ImageBar.setFontSize" id=link15 onMouseOver="ShowTip(event, 'tt13', 'link15')" onMouseOut="HideTip('tt13')">setFontSize</a></td><td class=SDescription>Sets the value of <a href="#ImageBar.$fontsize" class=LVariable id=link16 onMouseOver="ShowTip(event, 'tt3', 'link16')" onMouseOut="HideTip('tt3')">$fontsize</a>.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#ImageBar.setFileType" id=link17 onMouseOver="ShowTip(event, 'tt14', 'link17')" onMouseOut="HideTip('tt14')">setFileType</a></td><td class=SDescription>Sets the value of <a href="#ImageBar.$fileType" class=LVariable id=link18 onMouseOver="ShowTip(event, 'tt4', 'link18')" onMouseOut="HideTip('tt4')">$fileType</a>.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#ImageBar.setFillColor" id=link19 onMouseOver="ShowTip(event, 'tt15', 'link19')" onMouseOut="HideTip('tt15')">setFillColor</a></td><td class=SDescription>Sets the value of <a href="#ImageBar.$fillcolor" class=LVariable id=link20 onMouseOver="ShowTip(event, 'tt5', 'link20')" onMouseOut="HideTip('tt5')">$fillcolor</a>.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#ImageBar.setBackColor" id=link21 onMouseOver="ShowTip(event, 'tt16', 'link21')" onMouseOut="HideTip('tt16')">setBackColor</a></td><td class=SDescription>Sets the value of <a href="#ImageBar.$backcolor" class=LVariable id=link22 onMouseOver="ShowTip(event, 'tt6', 'link22')" onMouseOut="HideTip('tt6')">$backcolor</a>.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#ImageBar.setData" id=link23 onMouseOver="ShowTip(event, 'tt17', 'link23')" onMouseOut="HideTip('tt17')">setData</a></td><td class=SDescription>Sets the value of <a href="#ImageBar.$dataPercent" class=LVariable id=link24 onMouseOver="ShowTip(event, 'tt7', 'link24')" onMouseOut="HideTip('tt7')">$dataPercent</a> and <a href="#ImageBar.$text" class=LVariable id=link25 onMouseOver="ShowTip(event, 'tt9', 'link25')" onMouseOut="HideTip('tt9')">$text</a>.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#ImageBar.setTitle" id=link26 onMouseOver="ShowTip(event, 'tt18', 'link26')" onMouseOut="HideTip('tt18')">setTitle</a></td><td class=SDescription>Adds a prefix to the text data.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#ImageBar.makeBar" id=link27 onMouseOver="ShowTip(event, 'tt19', 'link27')" onMouseOut="HideTip('tt19')">makeBar</a></td><td class=SDescription>Creates an image in <a href="#ImageBar.$bar" class=LVariable id=link28 onMouseOver="ShowTip(event, 'tt10', 'link28')" onMouseOut="HideTip('tt10')">$bar</a> then calls <a href="#ImageBar.setBackColor" class=LFunction id=link29 onMouseOver="ShowTip(event, 'tt16', 'link29')" onMouseOut="HideTip('tt16')">setBackColor</a>.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#ImageBar.generateBar" id=link30 onMouseOver="ShowTip(event, 'tt20', 'link30')" onMouseOut="HideTip('tt20')">generateBar</a></td><td class=SDescription>Generates the image file, outputs it, then destroys the image.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="ImageBar.Variables"></a>Variables</h3></div></div>

<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="ImageBar.$bar_w"></a>$bar_w</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>protected $bar_w</td></tr></table></blockquote><p>Width of the bar image.</p></div></div></div>

<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="ImageBar.$bar_h"></a>$bar_h</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>protected $bar_h</td></tr></table></blockquote><p>Height of the bar image.</p></div></div></div>

<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="ImageBar.$fontsize"></a>$fontsize</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>protected $fontsize</td></tr></table></blockquote><p>Font size of the text.</p></div></div></div>

<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="ImageBar.$fileType"></a>$fileType</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>protected $fileType</td></tr></table></blockquote><p>The type of image file to generate.&nbsp; GIF, PNG or JPG</p></div></div></div>

<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="ImageBar.$fillcolor"></a>$fillcolor</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>protected $fillcolor</td></tr></table></blockquote><p>A colour identifier representing the fill colour composed of RGB components.</p></div></div></div>

<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="ImageBar.$backcolor"></a>$backcolor</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>protected $backcolor</td></tr></table></blockquote><p>A colour identifier representing the background colour composed of RGB components.</p></div></div></div>

<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="ImageBar.$dataPercent"></a>$dataPercent</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>protected $dataPercent</td></tr></table></blockquote><p>The percent of data.</p></div></div></div>

<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="ImageBar.$barPercent"></a>$barPercent</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>protected $barPercent</td></tr></table></blockquote><p>The percent of the width bar to be filled in, in pixels.</p></div></div></div>

<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="ImageBar.$text"></a>$text</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>protected $text</td></tr></table></blockquote><p>The text to be displayed on the bar.</p></div></div></div>

<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="ImageBar.$bar"></a>$bar</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>protected $bar</td></tr></table></blockquote><p>The image identified of the bar.</p></div></div></div>

<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="ImageBar.Functions"></a>Functions</h3></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="ImageBar.setWidth"></a>setWidth</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function setWidth(</td><td class=PParameter nowrap>$value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the value of <a href="#ImageBar.$bar_w" class=LVariable id=link31 onMouseOver="ShowTip(event, 'tt1', 'link31')" onMouseOut="HideTip('tt1')">$bar_w</a>.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>$value</td><td class=CDLDescription>The new value to set.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="ImageBar.setHeight"></a>setHeight</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function setHeight(</td><td class=PParameter nowrap>$value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the value of <a href="#ImageBar.$bar_h" class=LVariable id=link32 onMouseOver="ShowTip(event, 'tt2', 'link32')" onMouseOut="HideTip('tt2')">$bar_h</a>.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>$value</td><td class=CDLDescription>The new value to set.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="ImageBar.setFontSize"></a>setFontSize</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function setFontSize(</td><td class=PParameter nowrap>$value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the value of <a href="#ImageBar.$fontsize" class=LVariable id=link33 onMouseOver="ShowTip(event, 'tt3', 'link33')" onMouseOut="HideTip('tt3')">$fontsize</a>.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>$value</td><td class=CDLDescription>The new value to set.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="ImageBar.setFileType"></a>setFileType</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function setFileType(</td><td class=PParameter nowrap>$value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the value of <a href="#ImageBar.$fileType" class=LVariable id=link34 onMouseOver="ShowTip(event, 'tt4', 'link34')" onMouseOut="HideTip('tt4')">$fileType</a>.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>$value</td><td class=CDLDescription>The new value to set.&nbsp; Can be &lsquo;GIF&rsquo;, &lsquo;PNG&rsquo; or &lsquo;JPG&rsquo;.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="ImageBar.setFillColor"></a>setFillColor</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function setFillColor(</td><td class=PParameter nowrap>$value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the value of <a href="#ImageBar.$fillcolor" class=LVariable id=link35 onMouseOver="ShowTip(event, 'tt5', 'link35')" onMouseOut="HideTip('tt5')">$fillcolor</a>.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>$value</td><td class=CDLDescription>The new value to set.&nbsp; Can be &lsquo;green&rsquo;, &lsquo;red&rsquo;, &lsquo;yellow&rsquo; or &lsquo;blue&rsquo;.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="ImageBar.setBackColor"></a>setBackColor</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>public function setBackColor()</td></tr></table></blockquote><p>Sets the value of <a href="#ImageBar.$backcolor" class=LVariable id=link36 onMouseOver="ShowTip(event, 'tt6', 'link36')" onMouseOut="HideTip('tt6')">$backcolor</a>.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>$value</td><td class=CDLDescription>The new value to set.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="ImageBar.setData"></a>setData</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function setData(</td><td class=PParameter nowrap>$max,</td></tr><tr><td></td><td class=PParameter nowrap>$value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the value of <a href="#ImageBar.$dataPercent" class=LVariable id=link37 onMouseOver="ShowTip(event, 'tt7', 'link37')" onMouseOut="HideTip('tt7')">$dataPercent</a> and <a href="#ImageBar.$text" class=LVariable id=link38 onMouseOver="ShowTip(event, 'tt9', 'link38')" onMouseOut="HideTip('tt9')">$text</a>.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>$max</td><td class=CDLDescription>The maximum value of the data.</td></tr><tr><td class=CDLEntry>$value</td><td class=CDLDescription>The current value of the data.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="ImageBar.setTitle"></a>setTitle</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function setTitle(</td><td class=PParameter nowrap>$prefix</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Adds a prefix to the text data.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>$prefix</td><td class=CDLDescription>The new value to set.</td></tr></table></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="ImageBar.makeBar"></a>makeBar</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>public function makeBar()</td></tr></table></blockquote><p>Creates an image in <a href="#ImageBar.$bar" class=LVariable id=link39 onMouseOver="ShowTip(event, 'tt10', 'link39')" onMouseOut="HideTip('tt10')">$bar</a> then calls <a href="#ImageBar.setBackColor" class=LFunction id=link40 onMouseOver="ShowTip(event, 'tt16', 'link40')" onMouseOut="HideTip('tt16')">setBackColor</a>.</p><h4 class=CHeading>See Also</h4><ul><li><a href="#ImageBar.setBackColor" class=LFunction id=link41 onMouseOver="ShowTip(event, 'tt16', 'link41')" onMouseOut="HideTip('tt16')">setBackColor</a></li></ul></div></div></div>

<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="ImageBar.generateBar"></a>generateBar</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>public function generateBar()</td></tr></table></blockquote><p>Generates the image file, outputs it, then destroys the image.</p></div></div></div>

</div><!--Content-->


<div id=Footer>Copyright &copy; 2009 ezRPG Project&nbsp; &middot;&nbsp; Updated June 26th, 2010&nbsp; &middot;&nbsp; <a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->


<div id=Menu><div class=MTitle>ezRPG<div class=MSubTitle>Documentation</div></div><div class=MEntry><div class=MFile><a href="../config-php.html">Config</a></div></div><div class=MEntry><div class=MFile><a href="../modules/example-php.html">Module_Example</a></div></div><div class=MEntry><div class=MFile><a href="../modules/skeleton-php.html">Module_Skeleton</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Lib</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MFile><a href="const-errors-php.html">Error Codes</a></div></div><div class=MEntry><div class=MFile><a href="func-log-php.html">Log Functions</a></div></div><div class=MEntry><div class=MFile><a href="func-player-php.html">Player Functions</a></div></div><div class=MEntry><div class=MFile><a href="func-rand-php.html">Random Functions</a></div></div><div class=MEntry><div class=MFile><a href="func-text-php.html">Text Functions</a></div></div><div class=MEntry><div class=MFile><a href="func-validate-php.html">Validation functions</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent2')">Classes</a><div class=MGroupContent id=MGroupContent2><div class=MEntry><div class=MFile><a href="class-base_module-php.html">Base_Module</a></div></div><div class=MEntry><div class=MFile><a href="class-dbfactory-php.html">DbFactory</a></div></div><div class=MEntry><div class=MFile><a href="class-hooks-php.html">Hooks</a></div></div><div class=MEntry><div class=MFile id=MSelected>ImageBar</div></div><div class=MEntry><div class=MFile><a href="class-modulefactory-php.html">ModuleFactory</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent3')">Modules</a><div class=MGroupContent id=MGroupContent3><div class=MEntry><div class=MFile><a href="../modules/AccountSettings/index-php.html">AccountSettings</a></div></div><div class=MEntry><div class=MFile><a href="../modules/City/index-php.html">City</a></div></div><div class=MEntry><div class=MFile><a href="../modules/EventLog/index-php.html">EventLog</a></div></div><div class=MEntry><div class=MFile><a href="../modules/Index/index-php.html">Index</a></div></div><div class=MEntry><div class=MFile><a href="../modules/Login/index-php.html">Login</a></div></div><div class=MEntry><div class=MFile><a href="../modules/Logout/index-php.html">Logout</a></div></div><div class=MEntry><div class=MFile><a href="../modules/Members/index-php.html">Members</a></div></div><div class=MEntry><div class=MFile><a href="../modules/Register/index-php.html">Register</a></div></div><div class=MEntry><div class=MFile><a href="../modules/StatPoints/index-php.html">StatPoints</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent4')">Admin Modules</a><div class=MGroupContent id=MGroupContent4><div class=MEntry><div class=MFile><a href="../admin/Index/index-php.html">Admin_Index</a></div></div><div class=MEntry><div class=MFile><a href="../admin/Members/index-php.html">Admin_Members</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent5')">Database Drivers</a><div class=MGroupContent id=MGroupContent5><div class=MEntry><div class=MFile><a href="db-mysql-php.html">Db_mysql</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent6')">Exceptions</a><div class=MGroupContent id=MGroupContent6><div class=MEntry><div class=MFile><a href="exception-db-php.html">DbException</a></div></div><div class=MEntry><div class=MFile><a href="exception-file-php.html">FileException</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent7')">Index</a><div class=MGroupContent id=MGroupContent7><div class=MEntry><div class=MIndex><a href="../../index/General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Classes.html">Classes</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Functions.html">Functions</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Variables.html">Variables</a></div></div><div class=MEntry><div class=MIndex><a href="../../index/Constants.html">Constants</a></div></div></div></div></div><div class=MEntry><div class=MFile><a href="../install-php.html">Install</a></div></div><div class=MEntry><div class=MLink><a href="http://www.ezrpgproject.com/">ezRPG Project</a></div></div><script type="text/javascript"><!--
var searchPanel = new SearchPanel("searchPanel", "HTML", "../../search");
--></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option  id=MSearchEverything selected value="General">Everything</option><option value="Classes">Classes</option><option value="Constants">Constants</option><option value="Functions">Functions</option><option value="Variables">Variables</option></select></div><script language=JavaScript><!--
HideAllBut([2, 1], 8);// --></script></div><!--Menu-->



<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt1"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>protected $bar_w</td></tr></table></blockquote>Width of the bar image.</div></div><div class=CToolTip id="tt2"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>protected $bar_h</td></tr></table></blockquote>Height of the bar image.</div></div><div class=CToolTip id="tt3"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>protected $fontsize</td></tr></table></blockquote>Font size of the text.</div></div><div class=CToolTip id="tt4"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>protected $fileType</td></tr></table></blockquote>The type of image file to generate. </div></div><div class=CToolTip id="tt5"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>protected $fillcolor</td></tr></table></blockquote>A colour identifier representing the fill colour composed of RGB components.</div></div><div class=CToolTip id="tt6"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>protected $backcolor</td></tr></table></blockquote>A colour identifier representing the background colour composed of RGB components.</div></div><div class=CToolTip id="tt7"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>protected $dataPercent</td></tr></table></blockquote>The percent of data.</div></div><div class=CToolTip id="tt8"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>protected $barPercent</td></tr></table></blockquote>The percent of the width bar to be filled in, in pixels.</div></div><div class=CToolTip id="tt9"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>protected $text</td></tr></table></blockquote>The text to be displayed on the bar.</div></div><div class=CToolTip id="tt10"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>protected $bar</td></tr></table></blockquote>The image identified of the bar.</div></div><div class=CToolTip id="tt11"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function setWidth(</td><td class=PParameter nowrap>$value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the value of $bar_w.</div></div><div class=CToolTip id="tt12"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function setHeight(</td><td class=PParameter nowrap>$value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the value of $bar_h.</div></div><div class=CToolTip id="tt13"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function setFontSize(</td><td class=PParameter nowrap>$value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the value of $fontsize.</div></div><div class=CToolTip id="tt14"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function setFileType(</td><td class=PParameter nowrap>$value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the value of $fileType.</div></div><div class=CToolTip id="tt15"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function setFillColor(</td><td class=PParameter nowrap>$value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the value of $fillcolor.</div></div><div class=CToolTip id="tt16"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>public function setBackColor()</td></tr></table></blockquote>Sets the value of $backcolor.</div></div><div class=CToolTip id="tt17"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function setData(</td><td class=PParameter nowrap>$max,</td></tr><tr><td></td><td class=PParameter nowrap>$value</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the value of $dataPercent and $text.</div></div><div class=CToolTip id="tt18"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>public function setTitle(</td><td class=PParameter nowrap>$prefix</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Adds a prefix to the text data.</div></div><div class=CToolTip id="tt19"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>public function makeBar()</td></tr></table></blockquote>Creates an image in $bar then calls setBackColor.</div></div><div class=CToolTip id="tt20"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>public function generateBar()</td></tr></table></blockquote>Generates the image file, outputs it, then destroys the image.</div></div><!--END_ND_TOOLTIPS-->




<div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div>


<script language=JavaScript><!--
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>